local death_coil = fk.CreateSkill{
  name = "death_coil_skill"
}

Fk:loadTranslationTable{
  [death_coil.name] = "凋零缠绕",
  ["#death_coil_skill"] = "选择一名你至其距离1以内的角色，对其造成1点伤害。若目标角色为自己，则改为回复1点体力。",

}

death_coil:addEffect("cardskill", {
  prompt = "#death_coil_skill",
  can_use = Util.CanUse,
  target_num = 1,
  mod_target_filter = function (self, player, to_select, selected, card, extra_data)
    return to_select:compareDistance(player, 1, "<=")
  end,
  target_filter = Util.CardTargetFilter,
  on_effect = function (self, room, effect)
    if effect.from == effect.to then
      if effect.to:isWounded() then
        room:recover{
          who = effect.to,
          num = 1,
          skillName = "death_coil",
          recoverBy = effect.from,
        }
      end
    else
      room:damage{
        damage = 1,
        to = effect.to,
        from = effect.from,
        skillName = "death_coil",
      }
    end
  end
})

return death_coil